package com.sali.b_design_pattern.g_singleton_pattern.lesson_singleton.b_lazy.b_thread_safe.cas.test.thread;

import com.sali.b_design_pattern.g_singleton_pattern.lesson_singleton.b_lazy.b_thread_safe.cas.CasSingleton;

/**
 * @description:
 * @date: 2023/3/19 13:51.
 * @version: 1.0
 */
public class CasThread implements Runnable {

    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException ignored) {
        }
        CasSingleton casSingleton = CasSingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + ":" + casSingleton);
    }

}
